/**************************************************************************
 *  Copyright (C) 2008 - 2012 by Simon Qian                               *
 *  SimonQian@SimonQian.com                                               *
 *                                                                        *
 *  Project:    Versaloon                                                 *
 *  File:       hw_cfg_VSFCore_STM32.h                                    *
 *  Author:     SimonQian                                                 *
 *  Versaion:   See changelog                                             *
 *  Purpose:    hardware configuration file for VSFCore_STM32             *
 *  License:    See license                                               *
 *------------------------------------------------------------------------*
 *  Change Log:                                                           *
 *      YYYY-MM-DD:     What(by Who)                                      *
 *      2008-11-07:     created(by SimonQian)                             *
 *      2008-11-22:     rewrite GPIO_Dir(by SimonQian)                    *
 **************************************************************************/

#ifndef HSE_VALUE
#define HSE_VALUE						((uint32_t)12000000)
#endif

#define OSC_HZ							HSE_VALUE

#define I2C_0							0
#define I2C_1							1

/****************************** LED *****************************/
#define REG_0R_PORT						2
#define REG_0R_POIN						4
#define REG_0G_PORT						5
#define REG_0G_POIN						2
#define REG_0B_PORT						5
#define REG_0B_POIN						1
#define REG_1R_PORT						5
#define REG_1R_POIN						0
#define REG_1G_PORT						3
#define REG_1G_POIN						3
#define REG_1B_PORT						3
#define REG_1B_POIN						2
#define REG_2R_PORT						1
#define REG_2R_POIN						7
#define REG_2G_PORT						1
#define REG_2G_POIN						6
#define REG_2B_PORT						1
#define REG_2B_POIN						5
#define REG_3R_PORT						1
#define REG_3R_POIN						4
#define REG_3G_PORT						1
#define REG_3G_POIN						3
#define REG_3B_PORT						1
#define REG_3B_POIN						2

/****************************** MOTOR ***************************/ 
#define MOTOR_0_PORT					4
#define MOTOR_0_POIN					0
#define MOTOR_1_PORT					3
#define MOTOR_1_POIN					7
#define MOTOR_2_PORT					2
#define MOTOR_2_POIN					0
#define MOTOR_3_PORT					2
#define MOTOR_3_POIN					1

/****************************** SENSOR **************************/
#define SENSOR_I2C						I2C_0


